---
title: "Opencode"
description: "Connect Opencode to CORE's memory system via MCP"
---

### Prerequisites

- Opencode installed
- CORE account (sign up at [app.getcore.me](https://app.getcore.me))

### Step 1: Configure CORE MCP Server

Add the following to your Opencode configuration:

```json
{
  "mcp": {
    "core-memory": {
      "type": "remote",
      "url": "https://mcp.getcore.me/api/v1/mcp?source=Opencode",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      },
      "enabled": true
    }
  }
}
```

### Step 2: Generate API Key

1. Log in to your CORE dashboard at [app.getcore.me](https://app.getcore.me)
2. Navigate to **Settings** → **API Key**
3. Click **Generate new key**
4. Name it "opencode"
5. Copy the generated API key
6. Replace `YOUR_API_KEY` in the configuration above with your actual API key

### Step 3: Verify Connection

Test your setup to ensure everything is working correctly:

1. **Test memory search**:
   Ask Opencode: `Can you search my memory for [something you've previously stored]?`

2. **Check connection status**: Verify that core-memory appears as enabled in your MCP configuration
3. **Test operations**: Ask Opencode to store and retrieve information across sessions

## Troubleshooting

**Connection Issues:**

- Verify your API key is correct and not expired
- Ensure the configuration is properly formatted and `enabled` is set to `true`
- Restart Opencode after configuration changes
- Check that you're logged into your CORE account

### Need Help?

Join our [Discord community](https://discord.gg/YGUZcvDjUa) and ask questions in the **#core-support** channel.

Our team and community members are ready to help you get the most out of CORE's memory capabilities.
